@echo off
:: 激活虚拟环境
call venv\Scripts\activate

:: 检查是否需要安装依赖
if not exist requirements_installed (
    echo Installing dependencies...
    pip install -r requirements.txt
    type nul > requirements_installed
)

:: 启动服务器
echo Starting FastAPI server...
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000 